#include "stm32f10x.h"
#include "led.h"
#include "key.h"
#include "tim.h"

int main(void)
{
	u8 aa=0;
	LED_Init();
	KEY_Init();
	TIM_Init(7199,999);//72M/7200/1000
	while(1)
	{
		aa = KEY_Scan(1);
		if(aa==KEY0_PRES)
		LED_ON;
		if(aa==WKUP_PRES)
		LED_OFF;
	}
}
